package org.hyou.demos.cloud.ribbon;

import javax.annotation.Resource;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController("helloControler")
public class HelloControler {
    
    @Resource(name = "helloService")
    private HelloService helloService;
    
    @RequestMapping(value = "/hi")
    public String hi(@RequestParam String name) {
        return helloService.hiService(name);
    }
    
}
